package com.luoye.unionlotto;

import java.util.List;

public class UnionlottoFromFileAnalyzer extends UnionlottoAnalyzer {
    private UnionlottoFromFileGetter unionlottoFromFileGetter;

    public UnionlottoFromFileAnalyzer(String dataDir) {
        super();
        this.unionlottoFromFileGetter=new UnionlottoFromFileGetter(dataDir);
    }
    public void analyze(){
        this.unionlottoList=this.unionlottoFromFileGetter.get();
        //预测方法1
        List<Unionlotto> result1=this.fullMaxAndMin();
        //预测方法2
        List<Unionlotto> result2=this.randMaxAndMin();
        //预测方法3
        List<Unionlotto> result3=this.sumOneByOne();

        //数据结果
        System.out.println("");
        System.out.println("");
        printResult(result1);
        printResult(result2);
        printResult(result3);

    }
}
